import { GET_SHARE_LIST } from "../actionTyps";

const initState = {
    shareList: []
}


const reducer = (state = initState, action) => {
    const { type, payload } = action;
    switch (type) {
        case GET_SHARE_LIST: {
            console.log(state);
            return {
                ...state,
                shareList: [...payload]
            }
        }
        default: {
            console.log(state);
            return {
                ...state
            }
        }
    }
}

export default reducer;